package com.xhb.campusservices.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhb.campusservices.pojo.feedbackDto.FeedbackList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FeedbackListMapper  extends BaseMapper<FeedbackList> {
    /**
     * 管理员查看用户反馈信息表
     * @return
     */
    List<FeedbackList> feedbackListAdmin();

    /**
     * 普通用户查看自己的反馈信息表
     * @return
     */
    List<FeedbackList> feedbackListOrdinary(@Param("userId") Long userId);

}
